package com.weixing.mall.provider.model.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * @Author wx
 * @Date 2019/10/25 14:22
 * @Version 1.0
 */

@NoArgsConstructor
public enum DefectiveProductReasonEunm implements IBaseEnum<Integer> {
    //1 瑕疵，2 其它
    TYPE_1(1,"瑕疵"),
    TYPE_2(2,"其它");
    private int value;
    private String desp;

    DefectiveProductReasonEunm(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
